package com.mathdroid.model.abilities.specs.sniper;

import com.mathdroid.model.abilities.Ability;
import com.mathdroid.model.enums.EDmgType;

public final class SuppressiveFire extends Ability {

	/**
	 * Generated UID.
	 */
	private static final long serialVersionUID = 4054459345123714462L;

	public SuppressiveFire() {
		this.setName("Suppressive Fire");
		this.setIconName("barrage");
		this.setResource("Energy");
		this.setCost(35d);
		this.setCooldownMs(0d);
		this.setDirectDamageType(EDmgType.ENERGY);
		
		this.setStandardHealthPercentMax(0.0277);
		this.setStandardHealthPercentMin(0.0277);	
		this.setAmountModifierPercent(-0.81);
		this.setCoefficient(0.277);

		this.setPeriodicInterval(500d);
		
		this.setTrainableLevel(22);
	}
	
	@Override
	public String getDescription() {
		return "Sprays a wave of bolts over the target area, dealing " +
			this.getMinPeriodic() + " - " + this.getMaxPeriodic() 
			+ " weapon damage over the duration to up to " +
			"3 targets within 5 meters.";
	}

	@Override
	public double getMinPeriodic() {
		return
			this.getAmountModifierPercent() 
			* this.getCharStats().getRangedDamagePrimaryMin()
		
			+ this.getCoefficient() 
			* this.getCharStats().getTotalBonusDamageTechForce()
		
			+ this.getStandardHealthPercentMin() 
			* this.getStdDmg();
	}

	@Override
	public double getMaxPeriodic() {
		return 
			this.getAmountModifierPercent()
			* this.getCharStats().getRangedDamagePrimaryMax()
			
			+ this.getCoefficient() 
			* this.getCharStats().getTotalBonusDamageTechForce()
			
			+ this.getStandardHealthPercentMax() 
			* this.getStdDmg();
	}

	@Override
	public double getMinDirect() {
		return 0;
	}

	@Override
	public double getMaxDirect() {
		return 0;
	}
}
